package com.android.projetihm.nf;

import java.util.LinkedList;
import java.util.List;
import java.util.Random;

public class Graphe
{
	//+++++++++++//
	// CONSTANTS //
	//+++++++++++//

	//++++++++++++//
	// ATTRIBUTES //
	//++++++++++++//
	
	private String mFolderTitle;
	public String getFolderTitle() { return this.mFolderTitle; }
	
	private List<Integer> mItems;
	public List<Integer> getItems() { return this.mItems; }
	

	//++++++++++++++//
	// CONSTRUCTORS //
	//++++++++++++++//
	
	public Graphe()
	{
		this.mFolderTitle = "title_folder";
		this.mItems = new LinkedList<Integer>();
	}
	

	//+++++++++//
	// METHODS //
	//+++++++++//
	
	public void addItem(Integer item)
	{
		this.mItems.add(item);
	}
	

	//++++++++++++++++//
	// STATIC METHODS //
	//++++++++++++++++//
	
	public static Graphe getIdInstance(int id)
	{
		Graphe g = new Graphe();
		Random random = new Random();
		for (int i=0; i<random.nextInt(15)+3; i++)
		{
			g.addItem(id);
		}
		return g;
	}
}
